<template>
  <div class="back-top" @click="backTop"></div>
</template>

<script>
export default {
  setup(props, { emit }) {
    return {
      backTop: () => {
        emit("bTop");
      },
    };
  },
};
</script>

<style lang="scss" scoped>
.back-top {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 40px;
  height: 40px;
  z-index: 20;
  box-shadow: 1px 1px 1px #333333;
  border-radius: 50%;
  background: #fcfcfc url("./images/back.png") no-repeat center center;
  background-size: cover;
}
</style>
